﻿/**
 * @author sminutoli
 */
class com.dinmax.flash.central.bridge.VOICEItemBridge
extends MovieClip {
	
	private var txt_date:TextField;
	private var txt_from:TextField;
	private var mcTalk:MovieClip;
	private var mcControl:MovieClip;
	private var mcDelete:MovieClip;
	
	private var path:String;
	private var listener:Object;
	private var value:Object;
	
	public function VOICEItemBridge() {
		this.init();
	}
	
	public function onPress():Void {
		listener.displayVoiceMail(this.value);
		return;
	};
	
	public function init():Void {
		mcControl.onPress = stream;
		
		return;
	};
	public function setState(state:String):Void {
		mcTalk.gotoAndStop(state);
		return;
	};
	public function setDate(date:String):Void {
		this.txt_date.text = date;
		return;
	};
	public function setFrom(from:String):Void {
		this.txt_from.text = from;
		return;
	};
	public function setPath(path:String):Void {
		this.path = path;
		return;
	}
	
	public function stream():Void {
		trace("stream");
	};
	
	public function setValue(value:Object):Void {
		this.value = value;
		return;
	}

	public function setListener(listener:Object):Void {
		this.listener = listener;
		return;
	}

}